home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9803 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cs.dal.ca!usenet
  3. From: Dan Kelley <d.kelley@dal.ca>
  4. Subject: is <string.h> standard in c++?
  5. Content-Type: text/plain; charset=us-ascii
  6. Message-ID: <313B0603.1CD@dal.ca>
  7. Sender: usenet@cs.dal.ca (USENET News)
  8. Nntp-Posting-Host: skye.phys.ocean.dal.ca
  9. Content-Transfer-Encoding: 7bit
  10. Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
  11. Mime-Version: 1.0
  12. Date: Mon, 4 Mar 1996 15:02:27 GMT
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  14.  
  15. I notice a <string.h> file in the 2.7.2 gnu g++ include directory, in a subdirectory called "std".  Does this
  16. imply that the class defined therein is standard in some sense?
  17.  
  18. I'd love to use a string class instead of messing around with lots of "new char" and "delete []" code, but I
  19. would need first to know that the class is universal, and frozen, in some sense.
  20.  
  21. Although I read about string.h in Stroustrup's 2nd edition of "the C++ programming language", he prefaces his
  22. comments (section 7.11) by "here is a more realistic version of class string".  Previously I had taken this
  23. to mean that he was just giving the class as a sort of demonstration, so that the class features might
  24. change.
  25.  
  26. So the simple question is: "is there a standard string class in c++, and does the GNU g++, version 2.7.2, do
  27. this class correctly"?
  28.  
  29. If there is a FAQ that tells me about this, please accept my apologies.
  30.  
  31. Thanks in advance.
  32.  
  33. -- 
  34. Dan E. Kelley                   internet:                Dan.Kelley@Dal.CA
  35. Oceanography Department         phone:                       (902)494-1694
  36. Dalhousie University            fax:                         (902)494-2885
  37. Halifax, NS, CANADA, B3H 4J1    WWW:  http://www.phys.ocean.dal.ca/~kelley
  38.